package com.luohh.treeroom.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 罗辉煌
 * @since 2020-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "ad")
public class Ad implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value="id", type= IdType.INPUT)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer id;

    private String title;

    private String image;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableField("is_valid")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isValid;

}
